<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
</head>
<body>


    <script>
        let arr = [];
        for(let i = 0;i <10 ;i++) {
            arr.push(i);
        }
        console.log(arr);
        // let arr = [1,2,3,4];
        // console.log(arr.length);
        // console.log(arr);
        // arr.length = 5;
        // console.log(arr.length);
        // console.log(arr);




        // let arr = [1,2,3,4];
        // console.log(arr[0]);
        // console.log(arr[1]);
        // // arr[100] = 10;
        // // console.log(arr);
        // arr[-1] = 10;
        // console.log(arr);
    </script>
    <!-- <script>
        console.log("输出一条日志");//最常用
        console.info("输出一条信息");
        console.warn("输出一条警告");
        console.error("输出一条错误");
    </script> -->
    
    <!-- <script>
        console.log("输出一条日志");//最常用
        console.log("输出ABC");
        console.log("BCD");
        console.info("输出一条信息");
    </script> -->
    
</body>
</html>